package com.woniuxy02;

import java.util.HashSet;

public class Test02 {
    public static void main(String[] args) {
        HashSet<Student> students=new HashSet<>();
        Student s1=new Student(1,"zs",11);
        Student s2=new Student(2,"ls",12);
        Student s3=new Student(3,"ww",13);
        Student s4=new Student(1,"zs",11);
        students.add(s1);
        students.add(s2);
        students.add(s3);
//        students.add(s1);
        students.add(s4);
        System.out.println(students);
        System.out.println(s1.hashCode());
        System.out.println(s4.hashCode());
    }
}
